package com.atguigu.eduservice.client;

import com.atguigu.commonutils.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author summer
 * @date 2020/5/5 - 14:11
 */
@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {

    ////根据token字符串获取用户信息
    @GetMapping("getInfoUc/{id}")
    public UcenterMemberVo getInfo(@PathVariable("id") String id);
}

